Skip to main content

ViewDataDictionary<TModel>

Assembly: ServiceStack.Razor.dll
View Source
Declaration
public class ViewDataDictionary<TModel> : ViewDataDictionary, IDictionary<string, object>, ICollection<KeyValuePair<string, object>>, IEnumerable<KeyValuePair<string, object>>, IEnumerable

Properties

Model

View Source
Declaration
public TModel Model { get; set; }

ModelMetadata

View Source
Declaration
public override ModelMetadata ModelMetadata { get; set; }

Inherited Properties

Count

View Source
Declaration
public int Count { get; }

IsReadOnly

View Source
Declaration
public bool IsReadOnly { get; }

Item[String]

View Source
Declaration
public object this[string key] { get; set; }

Keys

View Source
Declaration
public ICollection<string> Keys { get; }

Model

View Source
Declaration
public object Model { get; set; }

ModelMetadata

View Source
Declaration
public virtual ModelMetadata ModelMetadata { get; set; }

ModelState

View Source
Declaration
public ModelStateDictionary ModelState { get; }

TemplateInfo

View Source
Declaration
public TemplateInfo TemplateInfo { get; set; }

Values

View Source
Declaration
public ICollection<object> Values { get; }

Methods

SetModel(Object)

View Source
Declaration
protected override void SetModel(object value)
Parameters
TypeName
System.Objectvalue

Inherited Methods

Add(KeyValuePair<String, Object>)

View Source
Declaration
public void Add(KeyValuePair<string, object> item)
Parameters
TypeName
System.Collections.Generic.KeyValuePair<System.String,System.Object>item

Add(String, Object)

View Source
Declaration
public void Add(string key, object value)
Parameters
TypeName
System.Stringkey
System.Objectvalue

AsRaw()

View Source
Declaration
public MvcHtmlString AsRaw()
Returns

ServiceStack.Html.MvcHtmlString

AsRawJson()

View Source
Declaration
public MvcHtmlString AsRawJson()
Returns

ServiceStack.Html.MvcHtmlString

Clear()

View Source
Declaration
public void Clear()

Contains(KeyValuePair<String, Object>)

View Source
Declaration
public bool Contains(KeyValuePair<string, object> item)
Returns

System.Boolean

Parameters
TypeName
System.Collections.Generic.KeyValuePair<System.String,System.Object>item

ContainsKey(String)

View Source
Declaration
public bool ContainsKey(string key)
Returns

System.Boolean

Parameters
TypeName
System.Stringkey

CopyTo(KeyValuePair<String, Object>[], Int32)

View Source
Declaration
public void CopyTo(KeyValuePair<string, object>[] array, int arrayIndex)
Parameters
TypeName
System.Collections.Generic.KeyValuePair<System.String,System.Object>[]array
System.Int32arrayIndex

Eval(String)

View Source
Declaration
public object Eval(string expression)
Returns

System.Object

Parameters
TypeName
System.Stringexpression

Eval(String, String)

View Source
Declaration
public string Eval(string expression, string format)
Returns

System.String

Parameters
TypeName
System.Stringexpression
System.Stringformat

GetEnumerator()

View Source
Declaration
public IEnumerator<KeyValuePair<string, object>> GetEnumerator()
Returns

System.Collections.Generic.IEnumerator<System.Collections.Generic.KeyValuePair<System.String,System.Object>>

GetViewDataInfo(String)

View Source
Declaration
public ViewDataInfo GetViewDataInfo(string expression)
Returns

ServiceStack.Html.ViewDataInfo

Parameters
TypeName
System.Stringexpression

PopulateModelState()

View Source
Declaration
public virtual void PopulateModelState()

Remove(KeyValuePair<String, Object>)

View Source
Declaration
public bool Remove(KeyValuePair<string, object> item)
Returns

System.Boolean

Parameters
TypeName
System.Collections.Generic.KeyValuePair<System.String,System.Object>item

Remove(String)

View Source
Declaration
public bool Remove(string key)
Returns

System.Boolean

Parameters
TypeName
System.Stringkey

SetModel(Object)

View Source
Declaration
protected virtual void SetModel(object value)
Parameters
TypeName
System.Objectvalue

IEnumerable.GetEnumerator()

View Source
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns

System.Collections.IEnumerator

TryGetValue(String, out Object)

View Source
Declaration
public bool TryGetValue(string key, out object value)
Returns

System.Boolean

Parameters
TypeName
System.Stringkey
System.Objectvalue

Implements

  • System.Collections.Generic.IDictionary<System.String,System.Object>
  • System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String,System.Object>>
  • System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.String,System.Object>>
  • System.Collections.IEnumerable